/*************************************************************************
*																		 *
*				code by Miles Chen (v-mich) 2007.10.13					 *
*																		 *
*																		 *
*************************************************************************/

#pragma once

#include "commdef-int.h"

namespace System{namespace Runtime{namespace InteropServices{namespace Marshal{

	LPVOID AllocCoTaskMem(DWORD dwSize)
	{
		return VirtualAlloc(NULL, dwSize, MEM_COMMIT, PAGE_READWRITE);
	}

	BOOL FreeCoTaskMem(LPVOID lpAddress)
	{
		return VirtualFree(lpAddress, 0, MEM_RELEASE);
	}


}}}}